// Raf Lempens & Bjorn Schobben
#include "RepairpointReachedAbilityVisitor.h"
#include <stdio.h>


RepairpointReachedAbilityVisitor::RepairpointReachedAbilityVisitor(): found(false), repairpointreachableInterface(0)
{
}

RepairpointReachedAbilityVisitor::~RepairpointReachedAbilityVisitor()
{
}

void RepairpointReachedAbilityVisitor::Visit(RepairpointReachedAbility& ability)
{
	found = true;
	repairpointreachableInterface = ability.RepairpointReachableInterface();
}

bool RepairpointReachedAbilityVisitor::FoundAbility() const
{
	return found;
}

RepairpointReachable* RepairpointReachedAbilityVisitor::RepairpointReachableInterface() const
{
	return repairpointreachableInterface;
}

void RepairpointReachedAbilityVisitor::Clear()
{
	found = false;
	repairpointreachableInterface = 0;
}

